package com.firesrc.service;

import java.util.List;
import java.util.Map;

import com.firesrc.bean.MailHost;

public interface MailHostService {

	void add(MailHost mailHost);

	List<MailHost> getAllList();

	void delete(String id);

	/**
	 * 得到实际启用的邮件列表
	 */
	List<MailHost> getAllCurrectList();

	List<String> getAllCurrentKindList();

	/**
	 * 让当前的MailHost有效
	 * @param id 要激活的主键
	 */
	void enable(String id);

	void disable(String id);

	void update(MailHost mailHost);

	void resetSeq(int count);

	Map<String, Integer> getKindCountMap(String state);

	List<MailHost> getListByType(String type);

	MailHost getMailHostById(String id);

	MailHost save(MailHost mailHost);

	int disableAll();

	int enableAll();

}
